<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>AI Assistant - LiteMCP</title>
    <link rel="icon" type="image/x-icon" href="/favicon.ico">
    <meta name="description" content="AI Assistant based on ReAct reasoning mode">
    <style>
      /* Initial loading styles */
      #app {
        height: 100vh;
        margin: 0;
        padding: 0;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
      }
      
      body {
        margin: 0;
        padding: 0;
        height: 100vh;
        background: #f5f5f5;
      }
      
      /* Loading animation */
      .loading-container {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        font-size: 18px;
        flex-direction: column;
      }
      
      .loading-spinner {
        width: 40px;
        height: 40px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-top: 3px solid white;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-bottom: 20px;
      }
      
      @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
      }
    </style>
  </head>
  <body>
    <div id="app">
      <!-- Loading display -->
      <div class="loading-container">
        <div class="loading-spinner"></div>
        <div>AI Assistant starting...</div>
      </div>
    </div>
    <script type="module" src="/main.js"></script>
  </body>
</html>